use existing canvas
add pages subfolder, convert index.js to coffeescript