edit script modal, getting data from mongo