Create Flatten.js