javascript code change