svg.js module fixes and cleanups