Cppreference String Split Function In Javascript