Syntax Error While Parsing Array Methods Javascript W3schools