Make the `contains` property non-enumerable

In environments where `Object.defineProperty` is not available, we fall back to exposing the polyfill as an enumerable property on `String.prototype`.