Added helper methods from the angularjs project

v1.3.0