I have this particular line of code

Code:
var o = JSON.parse(localStorage['options']);
localStorage['options'] is a long array object like this {"ads":true,"chat":true,"footer":true,"invite":true,"web":true,"contact":true,"window":true,"icon":t rue,"row":true,"message":true}

If write this line in option.html, nothing wrong will happen. But when I write it in background.html without any closures, I get the error "unexpected illegal token".

Does anyone know why and how to fix ?