This looks pretty risky to me. I believe we should be something more along the lines of `JSON.parse('{{ jssettings|escapejs }}')`