remvoe the hard coded uid 1 in chat.js, fix some deprecated options