STOCK CAPITAL (Details)
$ / shares in Units, $ in Thousands
6 Months Ended
Jun. 30, 2017
USD ($)
$ / shares
shares
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Amount of options, Granted 14,246,831
Amount of options, Exercised (4,489,973)
Amount of options, Cancelled (3,808,654)
Employee Stock Option [Member]  
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Amount of options, Outstanding at beginning of period 874,841
Amount of options, Granted 54,514
Amount of options, Exercised (11,777)
Amount of options, Cancelled (44,446)
Amount of options, Outstanding at end of period 873,132
Amount of options, Vested and expected-to-vest at end of period 855,464
Weighted average exercise price, Outstanding at beginning of period (in dollars per share) | $ / shares $ 2.1258
Weighted average exercise price, Granted (in dollars per share) | $ / shares 3.7605
Weighted average exercise price, Exercised (in dollars per share) | $ / shares 2.5401
Weighted Average exercise Price, Cancelled (in dollars per share) | $ / shares 3.9175
Weighted average exercise price, Outstanding at end of period (in dollars per share) | $ / shares 2.1311
Weighted average exercise price, Vested and expected-to-vest at end of period (in dollars per share) | $ / shares $ 2.1596
Aggregate intrinsic value, Outstanding at end of period (in dollars) | $ $ 1,762,771
Aggregate intrinsic value, Vested and expected-to-vest at end of period (in dollars) | $ $ 1,702,703