Updating the Sorting JS
Adding a page to test the code on console.