Create buttoncode.js

Uses Paper.js
Website: http://paperjs.org/
Installation instructions at above address