split field 'flags' in announcements into distinct properties, mark jsVars with a '$' like in every other case