Adding specs for JavascriptAnalyzer.analyze
Making sure the right instance methods are called in JavascriptAnalyzer.analyze