Update index.js

Updated module pattern according to new pattern.