configurable classes and small changes to jQuery