Added DOM API to add trendings.