Fix paw.event.js for safari