added history js degrade option