textmode in javascript example1 by evilpaulmore info at
evilpaul.org