ChatGPT - Generate JavaScript code