Switching to DefinitelyTyped's jquery.d.ts, picking up the latest imports, fixing the errors generated by the latest TypeScript compiler.