Set cookies via plugin instead of JavaScript