web.js gets rewritten everytime the script runs