Fixed an issue where event handler, added after adding node to a layer, didn't trigger;
add class to svg element.