javascript API for electrical and electronic calculations