【javascriptエラー】Uncaught SyntaxError: Illegal return statementが出たときの対処法 https://7-create.com/javascript-error-return/