Angular Clone Array Javascript Mdn Math Function Machine