Fixed some style and JSHint issues/warnings
Merge pull request #1 from awulder/quality-fixes

Fixed some style and JSHint issues/warnings