Fix JSHint errors (Fixes issue #3)