def load_dependencies(type)
      dep_js = extract_dependencies
      if type == 'iruby'
        LazyHighCharts.init_iruby(dep_js) unless dep_js.nil?
      elsif type == 'web_frameworks'
        dep_js.nil? ? '' : LazyHighCharts.init_javascript(dep_js)
      end
    end
def load_dependencies(type)
      dep_js = extract_dependencies
      if type == 'iruby'
        LazyHighCharts.init_iruby(dep_js) unless dep_js.nil?
      elsif type == 'web_frameworks'
        dep_js.nil? ? '' : LazyHighCharts.init_javascript(dep_js)
      end
    end
Loads the dependent mapdata and dependent modules of the chart

 @param [String] to determine whether to load modules in IRuby or web
   frameworks
 @return [void, String] loads the initial script of the modules for IRuby
   notebook and returns initial script of the modules for web frameworks