Tests and fixes for ext/jquery.js