Use script.async = false to serialize script loading.

Also adds tests for script loading & for root-relative paths.