added libraries and moved index.js