Add JSDoc.
Spacing, and better documentation in server-side code (client side in soon commit).