Try coding EVERYTHING in notepad, most editors will add a few spaces where they don't belong and so you recieve a few errors. I can't guarantee that this is the case but I can't seem to think of anything else.
I did code it all in notepad
I even re-coded it and uploaded it all again, but still got the same error.