Fix js error (TypeError: Cannot call method 'settingsGet' of undefined)
+ small other fixes