Put plot function and button ajax in a js script which will help simplify the html
Change the plot function to only update the data and axis instead of redrawing the canvas, helps performance.
Merge branch 'master' of https://github.com/LiyouZhou/OpenLabTools-web-interface