Model could be created, maybe the js lib should be changed to KineticJs