Updated web.js
Added index.html
Read output from index.html
Added missing require 'fs'