using jquery cookies instead of sessions