This is PerlMonks. Stay on topic. This is not the place to ask about bugs in your javascript (or the other 'j' language) nor how to learn write a formula in a spreadsheet, even though there are many Monks knowledgeable in such disciplines.

The point is this forum is also to help each other. That's why I posted here. If you know the solution, you can tell me.