Fixed a bug in mouseOffset() with Firefox, which lacks event.offsetX/Y properties.
Some modifications as per Winston's suggestions.
Merge pull request #225 from killkeeper/master

Fixed a bug in mouseOffset() with Firefox, which lacks event.offsetX/Y properties