ie8 fix for html5mode route

This is my fix for IE8 router problem - https://github.com/angular/angular.js/issues/6832 (issue is described here).