load items from JSON objects (not just files)

Hi,
I had a need to load JSON objects directly from the javascript (not an external file), so I modified the plugin to accept also objects.
This need happens a lot when the data comes from a CMS already in a json format.

Hope this helps!
Thanks,
Tomer