Function to check if the user is using hangouts or classic chat.

global variable. could you append `var` before declaring it