JS modifications. Router changed to angular-ui-router.