adding js for modal goals