Compilation of useful Angularjs directives