DEBT (Detail Textuals) - USD ($)
1 Months Ended 3 Months Ended 6 Months Ended
Jun. 07, 2017
Mar. 31, 2017
Jun. 30, 2017
Jun. 30, 2017
Jun. 30, 2016
Dec. 31, 2016
Debt Instrument [Line Items]            
Loss on extinguishment of debt       $ (1,089,000) $ (290,000)  
Net proceeds from the term loan, amount cash in hand       18,591,000 17,000,000  
Loss on extinguishment of debt     $ (861,000) (1,089,000) (290,000)  
Prepayment of milestone       17,000,000 $ 19,349,000  
Note payable to Crystal Financial LLC, with interest at LIBOR plus margin            
Debt Instrument [Line Items]            
Long-term debt, gross       $ 17,000,000
Note payable to Kenneth Rainin Foundation (a related party)            
Debt Instrument [Line Items]            
Long-term debt, gross     5,000,000 5,000,000  
Annual interest rate of promissory note   12.00%        
Number of warrants to purchase common stock   125,000        
Price of warrant per share (in dollars per share)   $ 0.01        
Amount of fair value of warrant   $ 600,000        
Term of warrants (in years)   10 years        
Amendment to the Crystal Loan Agreement            
Debt Instrument [Line Items]            
Number of warrants to purchase common stock 10.5 8.5        
Repayment of principal amount   $ 2,000,000        
Repayment of senior subordinated promissory note   5,000,000        
Loss on extinguishment of debt   $ 2,000,000        
Prepayment of milestone $ 2,000,000          
Notes payable to Hale Capital            
Debt Instrument [Line Items]            
Long-term debt, gross     $ 13,595,000 $ 13,595,000  
Loss on extinguishment of debt 800,000          
Unamortized deferred financing costs related to the Crystal Loan Agreement 500,000          
Amount of prepayment penalties and other extinguishment related costs $ 300,000          
Annual interest rate of promissory note 5.00%   5.00% 5.00%    
Amount of periodic principal payments $ 250,000          
Number of warrants to purchase common stock 895,944          
Price of warrant per share (in dollars per share) $ 4.14          
Amount of fair value of warrant $ 2,400,000          
Interest rate during period 11.00%          
Description of prepayment penalty (A) if prepayment is on or before the second anniversary of the Closing Date, 5% of the principal prepaid; (B) if prepayment is after the second anniversary but on or before the third anniversary of the Closing Date, 3% of the principal prepaid; and (C) if prepayment is after the third year anniversary but before the maturity date, 1% of the principal prepaid.          
Notes payable to Hale Capital | Prime rate            
Debt Instrument [Line Items]            
Basis spread on variable rate 7.00%          
Description of variable rate basis prime rate plus 700