A Matlab Alternative written in JavaScript