added vm destroy stuff
fix padding offsetting mousepos calculation
style fix and remove extraneous code
fix coordinate translation between canvas2d and canvas3d