fixed wrong appendMode in javascript
Merge pull request #18 from bitmatix/master

fixed wrong appendMode in javascript