Fix js errors
Fix realtime chat!!! :)