Replace divs with text scala templates