version 2 running on require.js