Web.js modified to include publishtest parameter.