Add log() function to Timeseries and test. Show log in demo.html