changed js function name