Added requirejs as a dependency and started to use it in the ot libraries.