Cleaning up redundant commented out statements and adding an additional console.log
Changing one of prompts
Updating to b76 API
Adding a semicolon after JavaScript invocation
Changed the endpoint name to ChatEndpoint from ChatBean, also changed the endpoint URI
Removing commented lines
Adding a debug statement
Converting the sample to use javax.json APIs and ported to b76
Commenting a redundant debug message