Fix script_with_cookie test to not use `setTimeout`.

This made xhr_with_cookie pass on Travis on Node 0.8, so presumably it'll do the trick for script_with_cookie too.