main page javascript changes