update old js, remove deprecated js sections