wrapped some code the depends on browser in conditionals
should exit from top-level loop when pc is -1

... not when *pc is -1
wrap some more browser specific things in conditionals