waveform directive for angularjs