working on home page javascript