Javascript for Thank You modal