remove writemessage.js