Refactored colour key as dynamic HTML table instead of HTML5
 canvas object.
Added jquery to js
Removed some extraneous code and variables.