Change omni function for js