Added javascript function to display the date.