Moved JavaScript calls to footer per best practice