flot to ajax