HTML5 Canvas - JavaScript DOM document Object Model explained