change name to js_safe_name