split smart.js file. and add build tool.

- #TODO pass jshintrc