Fix for IE 9

main.js:
 1 Moved the section of drawing Tree in the section of loading JSON
 2 Adding a utitily function bindEvents() to fix showing Detail Sheet for leaves in IE 9 which does not support addEventListener method.