added js functions for Animals portion of OOP Tdd lecture