Changed the JS Writter to avoid access violation in the buffer.
The buffer array is of chars not strings, so I changed to the type of char of the JS Writter.
The buffer array is of chars not strings, so I changed to the type of char of the JS Writter.