setting up the js pull for modal navigation.