Moved angular-ui reference to index.html to try to fix the often ui.directives not found error.