change js event to onmousedown