У вашего броузера проблема в совместимости с HTML5
Sometimes the easiest way to work with a string in JavaScript, is to split it apart. Using the split method you can specify how to split the string in order to extract the parts you want. In this video we cover using the split method to manipulate a string.
For a complete list of all our tutorials:
http://www.allthingsjavascript.com/youtube.html
Take the Learn Modern JavaScript: Getting Started or the Learn Modern JavaScript: Advanced Topics courses at a huge discount:
https://www.udemy.com/learn-modern-javascript-getting-started/?couponCode=YOUTUBE
https://www.udemy.com/learn-modern-javascript-advanced-topics/?couponCode=YOUTUBE