Fix private messaging
Refactor privateMessage.js