JS for the home page