added documentation for XHR and localStorage conveniences