@zachmullen and @cpatrick: Is adding JS code to a div the recommended / standard midas way to expose data to JS ?
Using jsonContent div may conflict with some other code, what about using an explicit namespace ?
For example: https://github.com/midasplatform/slicerpackages/blob/master/controllers/ViewController.php#L267
Open question: What about using the api proposed by jquery? See http://api.jquery.com/data/
See also http://public.kitware.com/gitweb?p=MIDAS/Midas3.git;a=blob;f=core/layouts/layout.phtml;h=3bff258187f673c1b4ea9c8a30483229169b8a0a;hb=HEAD#l375
You're right, we should probably namespace both the div and the globally scoped variable that we use to store our passed json. ("#midasJsonContent" and "var midas.json").