Update Hprose for JavaScript

Fixed some bugs.
Optimized code.
Add test files.