Finished settings JS file
All basic functionality implemented