Definitions for KineticJS

stilll need some tidying up, but should work fine