app.js is pretty much completely working

I've fixed all the functions in it AFAIK