Fix JSHint errors (Fixes issue #3)

Title says it all, JSHint errors fixed :)