Fix dispatching in onpopstate after jshint fixes.