working with requirejs
improved the angular stuff a touch