Fix paper.js & require.js bug