small fixes to the $location services
small fixes to the $location services

* fixing the jsdoc format
* rewriting updateHash() method to be easier to read and so that
  it minifies better

ammula88/angular.js,ammula88/angular.js,ammula88/angular.js,ammula88/angular.js,ammula88/angular.js