working servlet and js-rpc.js