Don't use globals.
Code style.
Load JavaScript shims before loading the library itself.
Update README with configuration info.