First thing first. A demo. Executed with this configuration :

<script src="./dist/nipplejs.min.js"></script>
<script>
    var joystick = nipplejs.create({
        zone: document.getElementById('zone_joystick')
    });
</script>