Cleanup buttons.js with a reusable js method