Working implementation of latest version of Kinetic.js