Javascript for modal translations