JavaScript Error: index.html:216 Uncaught SyntaxError: Unexpected token

Solution:

Place all JavaScript code at the end of HTML index. 

Comments