code refactoring...

add root property in svg.js