I have javascript object defined like this:
function SocialMiner() { var verbose=true; var profileArray=new Array(); var tabUrl; this.getTabUrl=function()
It appears that logToConsole is defined somewhere globally; in any case, it is not a member of our SocialMiner class. Try this:
var pageUrl=miner.getTabUrl(); logToConsole(pageUrl);