arrange script execution order to speed page load.