added comments on KineticJS functions