added TypeScript definitions for JS library