Moved Javascript to end of body