A simple javascript class to abstract out a canvas object.