Remove duplicate selection of DOM elements, remove per note console.log