Update libs/svg-loader.js

improve code climate
Update dot-styles.js

improve code climate