Split DOM manipulation and data retrival into different js objects for transaction polling.