Added support for require.js. Fixed build workflow.