Fix cookie reading problem; use correct script library location.