an angular directive for flot