add recovery sample of js
correct generated D style