Overriding index page & Putting javascripts at the end of body