Fixed syntax in example

There was a missing comma that broke it, and I went ahead and added semicolons while I was at it.