Some custom directives for angularJS