simple plotting using Javascript and flot