fixed fs require on web.js