update with fs for web.js