offsetX/Y is always undefined in FF, so fixed that.
Merge pull request #5 from blnks/firefox-fix

Handle offsetX/Y error in Firefox. Fixes issue #4