Document home.js + backend

after login, deck array will be loaded with decks from DB. See home.js
inline documentation.

backend - support for save deck