polyfill string.contains for old browsers