make javascript libraries order by xml-file
and some other changes