JsToDataUrl class added for toDataURL function