javascript isn't loaded if no chatbar is presented fix