Create spa.chat.js