Fixed a bug in which jCanvas would throw an error on IE9