Fix JSLint warnings

Missing space after function, missing `var`.