Moving JS to the end of the file to load html faster