require.js-ified this library