Added a couple of missing semicolons. Removed superfluous var.