fixed up the homepage js