Use JS to display time instead of substitute all view