Relocate the javascript to bottom page