Converted to mixins, removed IE <9 support.