svn.js refactored