Update JS tutorial 1

Included one unnecessary semicolon, which a vigilant student caught, and a missing parameter to a function.
Perhaps just changing the name of the parameter to something else like `otherName` which is unlikely to have been typed previously would already help. Picking up something from the global scope is definitely less than ideal because I found myself in a situation where I essentially had to explain different scoping rules.