This javascript solves triangles, you must supply three non negative values