Coordiante system for AngularJS