Update buttons.js

Use object title if exists