Little tidying up of main.js
Fixed private messaging
Fixed jshinty