With the help of some colleagues (thanks Ben and Alex!), I now have a working radio button selector that shows the selected button's value in a separate span. This is going to be used later on for AJAX-y functionality when swapping views on the map. Doing it this way allows me to keep everything defined JS side, as it should be, and let PHP do the heavy parsing, encoding and DB work