Create scope variable from the original HTML of a directive in AngularJS