optimize img and js file