Adding js to move the add to compilation to a modal through ajax