fixing up the homepage js