Fixed syntax errors, please read details.

Also, function declarations don't end with a semicolon, it just creates an empty statement.
Yet, all other statements require a semicolon! Read the changes of this commit.
Other than that, g'job mate!