removes incompatable javascript in ancor tab, typo in js