Interactive Smith chart in Javascript + HTML