fixed compatibility for kinetic.js 5.1.0
Merge pull request #1 from hoffmannkrzysztof/master

fixed compatibility for kinetic.js 5.1.0