Fix jshint warnings.
Fix dispatching in onpopstate after jshint fixes.
fix redefinition of location
fix trailing
Merge pull request #122