Add some samples to show correctness
Add  the extra renumberByJS() function