pull out styles and uglify