more fix on ARROW is not defined.

support firefox, chrome, and phantomjs