The Advantages of Writing Custom Directives in Angularjs