tweaks to theme favourites script (bug 862105)