Declare all javascript variables at the top of block scope. In this case, you'd have something like:

    var prvt = window.$("body").html().split("<p><em>("),
        prvtnd = prvt[1],
        prvtd; // is undefined by default