make plugin Mojolicious 4.0 compatible
Merge pull request #1 from reneeb/master

Make plugin compatible for Mojolicious 4.0. Thanks to reneeb!