Removed legacy canvas chart code
Code reformat & indentations switched to tabs

Primarily done to fix whitespace inconsistency introduced by Chris. My bad :-(
Prevented chart loading if debugger is disabled

The memory chart will now only load the Google chart library and the
local chart drawing class if template debugging is enabled. This is
to prevent unnecessary code loading.