add requirejs for js modules loading and move to it docs.js