remove some unwanted javascript from the open version dialog