Babysitter charged with endangering a child