Demo for add/ Remove Required attribute using javascript