You are asking how to get an element by it's CSS class using JavaScript. Nothing to do with Selenium really.
Regardless, you have a few options. You can first grab the element using Selenium (so here, yes, Selenium is relevant):
element = driver.find_element_by_class_name("gbts")
With a reference to this element already, it's then very easy to give it a border:
driver.execute_script("arguments[0].style.border = '1px solid red';")
(Note, the arguments[0])
If you really must use JavaScript and JavaScript alone, then you are very limited. This is because there is no getElementByClassName function within JavaScript. Only getElementsByClassName which means it would return a list of elements that match a given class.
So you must specifically target what element within the list, that is returned, you want to change. If I wanted to change the very first element that had a class of gbts, I'd do:
driver.execute_script("document.getElementsByClassName('gbts')[0].style.border = '1px solid red';")
I would suggest you go for the first option, which means you have Selenium do the leg work for you.