Listing 5-6. Returning a Result from a Function in the jsdemo.html File