Moved web.js out of controllers