(#1108) - split out index.js