Fixed stats display and ported remaining fields to js

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Merge pull request #586 from hassanNS/issue-583

Fixed stats display and ported remaining fields to js