Fix JSON to JavaScript

This I'm guessing should be JavaScript, not JSON, because you're actually working with a JS object.

Side note: that is invalid JSON. keys need to be wrapped in quotation marks :)