very basic time script with JS