Updated web.js to debugg JSON parsing