Commented the JS a bit better, and removed a bunch of useless stuff.