Fix undefined symbol
Adapt to require.js modules
Document how to run the unit tests