More typos corrected.

Another missing semicolon, and a duplicated 'function'.