Full auto memory

In case you would rather accept a single pull request instead of the three pieces. Here is a pull request that contains the other three pull requests. It adds the following functionality
1. Detection of Cancel
2. Automatic creation of JSON object (No longer necessary to update HTML form and JSON object)
3. Session based memory. (In short all form values are remembered for the duration of the watch app session.)
I do not see any change in this file. Seems to be just adding spaces but we use 2-space tabs for our JS files. Please remove this file from the PR.