update index.js for component-builder v0.8.2. add sample.