Refactor YAPS logic out of db ns
js/download: Fix table cell mis-alignment

Issue #285.
Merge branch 'issue/285'