remove jstd bridge from tests
Inline declaration used in only one place
comment
fix incompatability with latest version of Chrome
make code a little shorter and arrange vars to top