Is there a reason why we need this new `defaults` pattern? The `settings` variable is used across all core plugins to store the defaults and we should stick to this concept. Otherwise it will become even harder to maintain our current script setup. 

(I know the JavaScript is messy and outdated, but this needs to be fixed globally, using an unified approach.)