fix(js): clear modal content on close