Using HAL resources with AngularJS