cleaned up web.js commented code