Remove debug code and add requirejs build.