Vanilla shim passing test suite, though still using jQuery's 'extend' and 'closest' implementation