added an echo() function in util.js and a demo for it in echo.js