initial version of JSWriter