added loading thingy! also, refactored a bunch of JS and CSS
loading thing doesn't work on firefox yet though