fix wrong js for modal in page template