change some js code agine