remove outdates javascript