EE memory leak warning,  onResourceReceived option and jshint violations

Please review the PR and let me know if you don't want anything from it.
Note that I haven't updated the readme.md (on onResourceReceived part) not knowing whether you would accept the PR.
Also, 48c44a0 isn't the result of 9b0f3ab or b950958 (you can verify it by running `grunt` on your own checkout).