fix homepage js