Fixes for older version of firefox

-event non-existant in drag
-Number.isNaN not implemented yet