Add javascript so that the modal will work