Fixed set_bar js. Was comparing strings