jquery.d.ts closes #1311