Working with canvas and some javascript

I used the paper library