JavaScript console should automatically print result when expression entered returns a value