change the wrapper for easier import to AMD/CommonJS