added jquery-cookie plugin, and got cookies working