Create Array From Another Array In Javascript Mdn Math