Made web.js write asynchronously.