TroopJS extensions to require.js