master: add lib/Utils.js, and update canvas.js