Debugging require js

Progress on debugging require.