more KineticJS library code