Someone who is better at JS than me would probably be able to help out with this issue. You could also open an Issue over on the GitHub for this package, the package maintainer is usually quick to respond.
In fact, it looks like someone is trying to figure out the same thing already with this open issue