Removing controller dependency from directive