Cleaned up web.js