Create flexpaper.js