migrated 2D geometry to KeneticJS library