Refactoring uglify