removed stdbuf call from javascript, added setbuf in c
added buffering also in l2cap-ble.x