working on js containment for canvas