Made JS account for the timestamp variable