Fixed a bug in which jCanvas would throw an error on Firefox 29