Tune require.js and tests