javascript placement fix, should help speed up page load time