Test for javascript error