Fix duplicate JS in development mode
The current_page
instance doesn't necessarily change across page
reloads, so previously this would keep appending the same extra CSS and
JS. We only want to add those when they're different, so just do that.
This shouldn't make any difference to the generated site.