Fixed problems which prevented JSHint from passing
Merge pull request #2 from chuckhendo/master

Fixed problems which prevented JSHint from passing