Fix JSLint warnings

Missing space after function, missing var.
Merge pull request #41 from SLaks/patch-1

Fix JSLint warnings