JS for index.html