Fix javascript syntax error on date_widget

An error that slipped into the javascript code of the date_widget