adapted web.js file to new port and changed buffer proces to html