createStory(root, json)
Creates a Loomse story application. The createStory()
function is exported by the loomse
module.
root
HTMLElement
The root HTML object where Loomse will unpack itself
json
object
The parsed JSON data from your story script
Returns a Loomse (singleton) instance