Commenting code and consistent formatting of JS.

***Style / code readability:***
1. Single quotes for strings.
2. Two blank lines between methods.
3. White space.
4. Wrap at column 80.
5. Var names: websocket “address”  distinguished from bitcoin “address”.

***Comments with JSDoc.***
* Begin comments with capital letter, end with period.