Moved the javascript loads to end of body