got basic renumbering function written and tested, along with automated js tests via maven