Added function to get value from button. Got rid of svg tag (it gets appended in the javascript now--I did this so the page could easily re-initialize when the mode gets switched).