fixed more ie8 bugs, and issue where last item in list was not being removed from cookie