Ruby Parse String Into Array In Javascript In Javatpoint