fix event propogation in locator.js for firefox and IE