Merged AMD/CommonJS dispatch to use sync 'require'

Fixes #298.