js - reverse resource icons in search-tree popup