changing Wire implem to fit with KineticJS standarts