add Apache license on index.js