Trying to move to directive.js