Pure-JS splitter for modern browsers.