update javascript location