update js_controller helper