from head.js to require.js