Update JS tutorial 1

Included one unnecessary semicolon, which a vigilant student caught, and a missing parameter to a function.
That would partly solve the problem, but if they execute this in a browser, `name` would still be an empty string as opposed to the probably desired `undefined` due to some HTML/DOM idiocracies.