Added things for Html5 Canvas and KineticJS