add grunt file and travis build

- karma
- uglify
- yuidocs