Moved script calls to the end of the html file