Completely rewritten all JavaScript to TypeScript. Wow.