Issue #14 - added polyfill for String.endsWith