svn.js refactoring