// SVG.js
var draw = SVG().addTo('#drawing')
, rect = draw.rect(100, 100).fill('#f06')
<svg viewBox="0 0 100 100">
<circle cx="50" cy="50" r="50" />
<script>
document.querySelector('circle').addEventListener('click', e => {
e.target.style.fill = "red";
});
</script>
</svg>
<path id="algeria" onmouseover="displayName('Algeria')" d="..." />
<script type="text/javascript"><![CDATA[
function displayName(name) {
document.getElementById('country-name').firstChild.data = name;
}
]]></script>