Add a note directive
Refator angularjs code using mudules