Documented & fixed script loading