require deps in writecontent.js
fix writePath
Merge pull request #3 from yyx990803/master

Fix broken refactor changes