fix error with custom button.js, fix #37