Added header
moved the setting of global values to the setGlobals() function.
renamed div to container
moved initing the container div to initContainer() function
2nd part of move of globals to setGlobals(). Missed this out.
refactored all the steps involved in initializing the treemap the first time into one single function.
Then refactored the steps within into 3 sub-functions.
renamed loadCRData to showCRStatus and refactored its args down to one object.
Refactored the steps inside showCRStatus() into 3 logical steps and made them subfunctions.
Updated status of new todo