readline: Fix syntax of code from 37ce3a5419

Fix syntax of the code introduced in commit 37ce3a5419 adding setEcho
function, so that now it passes jslint check