cookie fix, json-p support