         
         // load config file
         loadConfigFile()
-        
-        // load promise
-        loadJavascriptSource("/bower_components/es6-promise/es6-promise")
-        
-		// Quick fix for iOS8: polyfill for ios8
-        if #available(iOS 10, *) {
-            // ios 10 polyfill
-            loadJavascriptSource("/bower_components/core.js/client/core")
-        } else if #available(iOS 9, *) {
-		} else {
-			loadJavascriptSource("/bower_components/core.js/client/core")
-		}
 
         // create legacy CliqzUtils global
          context.evaluateScript("var CliqzUtils = {}; System.import(\"core/utils\").then(function(mod) { CliqzUtils = mod.default; });")

        
        // register methods
        registerNativeMethods()
        
        
        // set up System global for module import

        let (sourceName, directory) = getSourceMetaData(sourcePath)
        if let path = NSBundle.mainBundle().pathForResource(sourceName, ofType: "js", inDirectory: directory), script = try? NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding) as String {
            context.evaluateScript(script);
        } else {
            print("Script not found: \(sourcePath)")
        }
    }
    
