change some js code