<commit_before>var manager = require('jsdom-manager');

var inst = manager.lookup(1);
inst.loadPage('http://news.ycombinator.com/', function () { 
    var script = inst.document.createElement('script');
    script.src = 'http://code.jquery.com/jquery-1.5.min.js';

    script.onload = function () {
        console.log('HN Links');
        var $ = inst.window.$;
        $('td.title:not(:last) a').each(function() {
            console.log(' -', $(this).text());
        });
    };
    script.onerror = function () {
        console.log('Error loading jQuery');
    };
    inst.document.documentElement.appendChild(script);
});

<commit_msg>Updated test/basic_remote.js to work with newest API.<commit_after>var manager = require('jsdom-manager');

manager.lookup(1, function (inst) {
    inst.loadPage('http://news.ycombinator.com/', function () { 
        var script = inst.document.createElement('script');
        script.src = 'http://code.jquery.com/jquery-1.5.min.js';

        script.onload = function () {
            console.log('HN Links');
            var $ = inst.window.$;
            $('td.title:not(:last) a').each(function() {
                console.log(' -', $(this).text());
            });
        };
        script.onerror = function () {
            console.log('Error loading jQuery');
        };
        inst.document.documentElement.appendChild(script);
    });
});

{'fraction_non_alphanumeric': 0.18475916606757728, 'fraction_numerical': 0.004313443565780014, 'mean_word_length': 2.4455445544554455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1162959', 'n_tokens_mistral': 417, 'n_tokens_neox': 405, 'n_words': 64}