Updating js function name based on feedback