Move minCss and minJs to lib/min.js

make the index.js smaller. it has handled too much stuff.