Updated the `String.contains` function to be ES6 compliant and don't overwrite it if already defined

Also added a test unit for shim/polyfill function