ref https://github.com/ffissore/presentz.js/issues/18