remove js function