Some generic angular js directives