jQuery: JSDoc Callbacks and tighten up typing