Added requirement for r.js compilation to tests and improved documentation.