throw error when angular-ui-router.js is loaded before angular.js