Count ternary and or operators for complexity

Both ternary and || operators introduce independent code paths, and it's therefore sensible to include them when calculating JS cyclomatic complexity.