Added license header to index.js