Update hprose for NodeJS

Refactored some code for NodeJS.