Added cookie saving
Slimmed down jquery-cookie library