Create getPastTime.js

Main file