Update JS tutorial 1

Included one unnecessary semicolon, which a vigilant student caught, and a missing parameter to a function.
Oh wow, you're right. The problem here was that my student actually typed all of this in the console and it "worked" because it referred a global variable called `name`. Sorry, I'll correct this.