Fix javascript syntax error on date_widget