Import JSON data into a JS function

Following up from what @Shirobachi said, you might want to take a look at this blog post:

It describes the general approach to using static data quite well and might help you.