modified to normalize expressjs and html app, and to make angular-ui-router.js for both identical.