JQuery plugin in TypeScript