Fix warnings with JSHint