Changed array notation to dot notation

Ran code through jshint.com. Suggested changes: dot notation and missing semicolon.
Also added a single semicolon.