add js dispatchMouseEvents