Helper class for changing the query string dynamically using AngularJS ui-router