Reorganizing to use KineticJS library.