My attempt on Rosalind problems in JavaScript (Node)