make sample codes of js test tools