Code refactoring.
Add angularjs.