bounboxsvg.js refactoring