Fix for issue #15 - djanalytics.js breaks window events