I had a look at your jsfiddle, and it looks to me that it's a bug in mathjs. I have the impression that mathjs doesn't parse well complex numbers (I can be wrong there), so why not spend 1 hour to try to fix that bug before considering alternatives?
This situation will improve in the future. See the Math.js issue [3].
[1] https://github.com/patrickroberts/complex-js