Angular Remove Element From Array Javascript Mdn