Angular JS helper services and directives