change the order of scripts to load to make sure that Global modelXMLStr is defined in main controller…… :), #24