Create Chatcore.js

Plugin chat core