Closes #2. Add require.js support for dev and dist.