added filehandling if browser is not chrome