Adding tests for JSAnalyzer
Fixed a bug in the error case of getFileComplexity
Adding a fixture for the complexity report
And some more specs for the JavascriptAnalyzer
Some minor refactoring in JSAnalyzer