more patches for js verification