fix mangopay-kit.js bug