web.js using toString method