fixes on index.js
Added travis CI script