javascript algorithms package