Moved time stamp selection to Javascript side