Uses client-side Javascript to format a datetime instead of the Ruby on Rails server.