fixed #5 again
final cleanup of issue #5
convert iteration to use lodash

This is mainly for convenience and to facilitate IE8 support
retain original command line

Before the commands that were called disappeared and were replaced by
the result next to the prompt. Now more like a real terminal the
original remains and the result is shown on its own line.