Add server script, first version sets cookies and returns gif or js