Implemented str.startsWith for the browsers that don't have it.