fixed bug where the javascript console would throw an error if no settings were defined