No need for a variable here
Added a JS version of the API, using canvas.