rename js function name