Require.js plugin

Fixes #102