Move some things around for performance.

Create a global JS object that we can bind our PHP values to, that can
then be referrenced by the js in our new application.js file. Can't
stand having this stuff in line. Makes it easier to have CDN support
down the road.