simplify browserApi slightly
ternary a bit clearer than if here
tiny bit shorter
rename method
remove unneeded function, this all gets wrapped in a library-wide function so is already hidden to the outside world
new built version