move global js to the bottom