Added UMD wrapper and fixes iOS issues.