chnages to the java script and style, also additionally added the date