update CS, add file ext change, index.js wrapper