transfer javascript in footer