simplify index.js. this might make it easier to require flatsheet into another project.