modified echo.js

used a for loop for the arguments.