index.js -> lib/index.js
added timeout to request