Updated flot API and contrib files