Rewrite build process for requirejs and update document