dev: use require.js modules consistently