Fix code re-evaluation for new version of paper.js
Fix lag in window resizing.