Js Take N Elements From Array