puts => console.log

We're not in ruby any more ;)