Add code to dom elements by id