expose jsAPI as factory method
Merge pull request #238 from mistakster/create-item

Expose JSAPI as a factory method