doing hacky stuff on the main pages to get custom client side js to work with ratchet