require deps in writecontent.js