結果 : javascript nested functions bad practice