Make mousetrap CommonJS-compatible