Firefox 18+ supports String#startsWith, String#endsWith

Ticket https://prototype.lighthouseapp.com/projects/8886/tickets/1654-native-startswithendswith-in-firefox