(refactor) Makes attributes of svg elements functions