fix misprint in js code of example
update testcases for firefox: add test for issue #3073; add timeout for potential stucked test