javascript plotting recipe using Flot