This is an unusual use of split which according to MDN is not supported by all browsers. Please change to `match(/^(.*)_(\d+)$/)`.