Revert "moved function to setting.js"

This reverts commit 1dd2286f10804227f41cfb76346dfac34625ecfe.
formatting improvement by removing old amount/desc