fix for js event