Changed example to use $http.jsonrpc