fixed JSHint errors on Products model