move out config, and fix jshint
fix require