Basic classes for working with Url in AngularJS