Fixed the date thing,now I need to implement the javascript