Bug fix in buttons.js

Added "this." to avoid error.