moved index.js back to library