Saddle Points in JS