diff --git a/scene_toolbox.html b/scene_toolbox.html
index f687738..24622c5 100644
--- a/scene_toolbox.html
+++ b/scene_toolbox.html
@@ -50,16 +50,15 @@
document.domain = qs.domain;
}
var parent = this.top;
-var scenes = parent.__koa_mock_scenes || [];
+var scenes = parent.__koa_mock_scenes || {};
var select = $('#j-switch-scene');
var queries = parseQueryString(parent.location.search);
var options = '';
// create select options
-for (var i = 0; i < scenes.length; i++) {
- var v = scenes[i];
- options += '';
+for (var filename in scenes) {
+ options += '';
}
select.html(options)