[javascript] How to implement history.back() in angular.js