JavaScript library to solve algorithms