Update NWCanvas.js