Framework for composing Javascript apps as data