browser date + time code cleaned