syncing angularjs stuff