add jshint && flow check for index.js