I feel like we'd need to do this in the runner instead of the makefile + bash if we want to store the content and build the JSON format after the fact.

I'd like to have a try with the ifeq first but if this is really to ugly we'll need to move this to the javascript runner. But maybe we can do the switch in another bug (either before or after this one)