Syntax Error While Parsing Array Methods Javascript Mdn Addeventlistener