Final TypeScript fixes for app.ts

To put more jQuery and other libraries in place.