Complex number library written in Javascript