Fixed a bug where navigation did not work on IE8 (because it does not support addEventListener)