Refactored WebApp test.html

Fixed indentation (now using tabs instead of spaces)
Created CaptChat namespace
Moved functions into namespace
Added some helper functions
Added image appending (to allow scrolling text)
Changed size of canvas to fit more text per row