Remove main.js requirement for themes

This is for #8626.
Alright, I'll keep that in mind. I've actually not used `JSON.parse()` before, so I didn't know that. Thanks. :)