added javascript block to chat.mako
added timestamp helper, timestamp on message model kept in unix format