got flot to work in directive