Restructure javascript and remove buttons for SMOS and SPI