Fix date updating

Page no longer refreshes therefore date wasn't being updated. Fixed to
update with javascript.