Support for async scripted dashboards, and accesss to jquery, window & document, Closes #274)