repair compatibility of Buffer with js browser client
Merge pull request #7 from compcj/master

repair compatibility of Buffer with js browser client