Playing around with javascript terminal