Remove unused code and more

Also, there are some variables in the http js files that aren't being used currently, but I assumed that those files are still being worked on and that those variables are going to be used yet....