luci-app-statistics: convert graph rendering to client side js