javascript and paper.js musings