Fix issues with JSHint and make it happy