Fix a defect in protocol.js

JavaScript supports only numeric doubles, therefore the largest integer
value which can be represented in JavaScript is +/-2^53. Currently I64
integer is not supported precisely.