add index.js, and update version to 0.2.1