Move JavaScript to above body end tag