Cleanup settings.js - Fix #771