Creating work-item directive for dom manipulation