[JS] - Procedural attempt