       return callback(cache)  if cache
       unless chrome.extension?
         # not embedded, demo mode
-        demo = resource in demo_data
-        _self[resource] = if demo then demo_data[resource] else {}
+        demo = demo_data[resource]
+        demo = {} unless demo?
+        _self[resource] = demo
         callback _self[resource]
       else
         if args


    # });
    insertCSSLink = (name) ->

      # insert css into head
      $("head").append $("<link/>",
        rel: "stylesheet"
        type: "text/css"
        href: chrome.extension.getURL(name)
      )
    doInsertShellUI = ->
      observer.disconnect()
      file = "feedlyconsole.html"

        $consoletab.slideDown()
      _console.log "[Josh.FeedlyConsole] initializeUI."
      $consoletab = $("#consoletab")
      if $consoletab.length is 0
        console.error "failed to find %s", $consoletab.selector
      $consoletab.hover (->
        $consoletab.addClass "consoletab-hover"
        $consoletab.removeClass "consoletab"
