destroy superfluous javascript