Move out possible to detect options, but require for now.
Make amd separate if, and export commonjs.
Retab umd.js
Fix umd to set global even when in AMD.
Fix errors.
A (crappy) way to detect format.
Detect require implementation.