AC: adding date format to js
AC: fixed a typo for view