Implementing JSHint recommendations