Fix defining JSON in ES3 test environments