add index.js with declarations and demo.js