search - add endsWith polyfill for safari