Move saveSettings() to settings.js
Merge pull request #520 from simondlr/settings_fix

Move saveSettings() to settings.js