Ruby Convert String Into Array In Js W3school