integrated paper.js and made synchronous drawing work