utils: test-js: use heredoc to avoid oneline only for js code