Fix reorganize script and added it to index.html