Trello content script refactoring