refactor use attributes
begin tests
clear container before appending
move capability checking to utils; move svg to utils