Fixed a couple of errors in JSWriter.