robot js window.event is not working in firefox. fixed.