test to reargange js
modified printing process
Bug fixed