javascript エラー「Uncaught SyntaxError: Identifier ‘top’ has already been declared」の原因