Cat class in js