Utilities for AngularJS