Move JavaScript to footer