Not good? I'm not opposed to that. I just needed a place to put it and in the account settings seemed natural. Then there's no cookies or anything. The setting is just stored in the database.
Why not respect the browser/system's theme? No need for settings or javascript: