small java script code change