Fixes js errors; Removes cometchat