Fixed JSON string formatting.
fixed bugs preventing responses to requests.

started developing javascript display test code.