Made it a little prettier
Added exception handling, defaults to empty list
Made a mess of main.js. Added sorting