顺手优化一下js代码
再提交一次，简单优化js
Merge pull request #21 from bateGit/console

Console