client adjusted for require.js