A javascript implementation of limited-memory BFGS