Added asynchronous loading for scripts