Fix resources icon scale javascript