I have a javascript which takes 1 input and produces a result. I need that changed so that it processes input in bulk.