moveing the script out of the soy into file, and moving page, and content box shared code into utils.js