Refactored some simple js.
Updated to 0.4.0 of angular-ui.