Cleaned up ccd code and made separate animation html