slight changes to index.html
added support to chart update when user changes units