Cart - Add an 'Agree to terms and conditions' checkbox

Thank you for the great tutorials but the required is not working for me. Also, I don’t have that JS line in my theme, should I add that manually?