Directive and Service for CapturePlus support in Angularjs