AMD compatible

I use Require.js to load modules. A little change is required to make EpicEditor compatible with AMD.