Simple Javascript linear expression library