JS for store/display time