added an untested and incomplete stub of the jQuery reference implementation