Python Input Into Array Methods Javascript Slice String Js