HTML5 Code to turn tasks into tree visualisation