user-icon fix

added a function getUserIcon in global.js to get icons for users
user-icon bugfix

fixed a bug where userstatus was a string but an int was expected