Update date with current time

uses javascript to update with time.