Fixed angularjs issues on IE8