example of the $location regression in angular 1.1.5