Add sample to control for Modal by Javascript