home page javascript fixes