Changed canvas logic to kinetic.js