Updating: initiating an API in ATS for HTML/canvas-2d