Rewrite javascript example page with angular-rpc

Add angularjs and angular-rpc to javascript example page