Reorganized the Index and Results page scripts to take better advantage of typescript.
The file initialize.ts contains some extensions to the built in types.
Improved the reliability of checking if a member exists by using an explicit has own property check.
Documented javascript and typescript code.
I need to make the generated javascript file initialize.js load on all of the pages.