show javascript code to intercept http request in angular.