changed to different sample code for kineticjs