Quicker, safer 'nojs' class replacement