Remove already included script
Fixed a typo
Removed old imports
Updates to sort
Move sorting function to JS file