fix writing of JavaScript