using suggested web.js fix from the intarwebs