Hopefully fix properly the javascript relative time updates

Signed-off-by: emanuele <emanuele45@gmail.com>