Add update transition effects
Modularize JS code with GgvisPlot objects