javascript: fixed broken merge
TESTS
javascript: added required decl for browsers