Convert Get parameter, cookies an such to Javascript object literals