fix var reference to Snap object in canvas.js
layer attrs updated via stream.