JS Algorithms added