Documented each variable, object and function.
Separated some function for better API interface.
window, document passed as plugin arguments.
Some function name changed for better readability.
Some socket event name changed for better readability
Event names are changed;

requestFriendList => requestOnlineUsers
receiveFriendList => receiveOnlineUsers
sendmessage => sendMessage
getmessage => receiveMessage
Event name changed;

sendmessage => sendMessage
Unused, blank <style> tag removed.
All <script> moved to page bottom.
Chat input box id changed;
"chatText" => "chatTextBox"
Friend list container id changed;
"friendlist" => "userContainer"
Friend list container class changed;
"friendlist" => "onlineUserList"
Unused class removed.
Class name changed;
".friendlist" => ".onlineUserList"
Description changed and License text altered.