Update Jsonrpc.js

Some for-in fixes related to iOS5 issues