improving AngularJS code which is used for ngRemote
Merge pull request #3 from florianhoehn/improveAngularCode

improving AngularJS code which is used for ngRemote