public function getButtonsJS()
    {
        $buttons = $this->getButtons();
        $str = "";

        for ($x = 0; $x < count($buttons); $x++) {
            $str .= "'" . $buttons[$x] . "'";

            if ($x < (count($buttons) - 1)) {
                $str .= ",";
            }
        }

        return $str;
    }