added port to web.js
half way through copying index