added modal js code