Put simple content into Craft and grab it in JavaScript
One way to go about this is to use the JSON Expand plugin from Familiar Studio:

https://github.com/familiar-studio/craft-json-expand

It's pretty easy to use:

{% set hpContent = craft.entries.section('homepageContent').find() %}


Then you can just grab the data you need from the json object like:

&lt;script type="text/javascript"&gt;
    var homepageContent = hpContent|json_expand|raw }};
    console.log({{ hpContent|json_expand|raw }});
&lt;/script&gt;


One caveat I've found though is that content in Rich Text editors doesn't output.  If you're just using simple text fields, then you should be fine.  If you do need something Rich Text-like, you could use Craft's |markdown filter on data from a simple text field.