More refining to javascript collision test.