refactoring Dir and applied Grunt Module(merge&uglify)