add fs definition to web.js