corrected web.js with read file