What do you know? A single page app needs it's state managed entirely by js. Load all js at once, define init and cleanup functions that get called on 'push' event.