make requirejs uglify and rm uncessary code

make requirejs uglify and rm unnecessary code