Update www.js

Add error log for www-txt