Matlab Add All Values In Array Javascript Mdn Addeventlistener