Small JS class to help manage cookies