added script to prevent duplication of jquery to fix overlay not closing