The js code for the carousel got moved to the end of the html