A console simulator for Javascript