Simplified the js controller inclusion
Fixed the angular-ui reference after updates.
Added base href which is required by later versions of angular.