a mock shim for javascript remoting