JavaScript cookie handler and its jQuery Plugin version with Qunit tests