Resolve AMD/RequireJS loading issues

Resolves #99, closes #112.