Switched from paperscript to javascript