Perhaps you could use something like this. Parsing with regex's isn't awesome, but I think it's more explicit. (The above code would parse `xfeatures.sensex=xtruex` just as well as `{features.sense}='true'`

https://github.com/dimagi/commcare-hq/blob/master/corehq/apps/app_manager/static/app_manager/js/commcaresettings.js#L34