| Net Income (Loss) Per Share | 
13. Net Income (Loss) Per Share 
  
The following table sets forth the computation of basic and diluted net income (loss) per share: 
  
 | 
  | 
Three months ended September 30, 
 | 
  | 
  | 
Nine months ended September 30, | 
  | 
 
 | 
  | 
2015 | 
  | 
  | 
2014 | 
  | 
  | 
2015 | 
  | 
  | 
2014 | 
  | 
 
| Numerator: | 
  | 
 | 
 | 
 | 
 | 
 | 
 | 
  | 
 | 
 | 
 | 
  | 
  | 
  | 
  | 
   | 
 
| Net profit (loss) | 
  | 
  | 
  | 
 | 
 | 
  | 
  | 
  | 
  | 
 | 
  | 
  | 
  | 
  | 
  | 
 | 
 
| Basic | 
  | 
$ | 
 (5,185  | 
) | 
  | 
$ | 
 12,024  | 
  | 
  | 
$ | 
 (14,945 | 
) | 
  | 
$ | 
 (13,614  | 
) | 
 
| Adjustment for change in fair value of warrant liability  | 
  | 
  | 
 -  | 
  | 
  | 
  | 
 (15,773  | 
) | 
  | 
  | 
 -  | 
  | 
  | 
  | 
 -  | 
  | 
 
| Diluted  | 
  | 
$ | 
 (5,185  | 
) | 
  | 
$ | 
 (3,749  | 
) | 
  | 
$ | 
 (14,945 | 
) | 
  | 
$ | 
 (13,614  | 
) | 
 
|   | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
    | 
  | 
  | 
  | 
    | 
  | 
 
| Denominator: | 
  | 
 | 
  | 
 | 
 | 
 | 
  | 
  | 
  | 
  | 
    | 
  | 
  | 
  | 
    | 
  | 
 
| Weighted-average common shares outstanding used in computing basic and diluted net income (loss) per share | 
  | 
 | 
  | 
 | 
 | 
  | 
  | 
  | 
  | 
  | 
    | 
  | 
  | 
  | 
    | 
  | 
 
| Basic | 
  | 
  | 
 102,239,868 | 
  | 
  | 
  | 
 78,513,144 | 
  | 
  | 
  | 
 102,043,392 | 
  | 
  | 
  | 
 74,943,169 | 
  | 
 
| Dilutive effect of warrants  | 
  | 
  | 
 -  | 
  | 
  | 
  | 
 750,653 | 
  | 
  | 
  | 
 -  | 
  | 
  | 
  | 
 -  | 
  | 
 
| Dilutive effect of stock options | 
  | 
  | 
 -  | 
  | 
  | 
  | 
 4,072,574 | 
  | 
  | 
  | 
 -  | 
  | 
  | 
  | 
 -  | 
  | 
 
| Diluted | 
  | 
  | 
 102,239,868 | 
  | 
  | 
  | 
 83,336,371 | 
  | 
  | 
  | 
 102,043,392 | 
  | 
  | 
  | 
 74,943,169 | 
  | 
 
| Net income (loss) per share, basic | 
  | 
$ | 
 (0.05  | 
) | 
  | 
$ | 
 0.15  | 
 | 
  | 
$ | 
 (0.15 | 
)  | 
  | 
$ | 
 (0.18  | 
) | 
 
| Net income (loss per share, diluted | 
  | 
$ | 
 (0.05  | 
) | 
  | 
$ | 
 (0.04  | 
) | 
  | 
$ 
 | 
  (0.15 | 
) | 
  | 
$ | 
 (0.18  | 
) | 
 
 
 
 
  
The following table sets forth potential shares of common stock that are not included in the calculation of diluted net loss per share because to do so would be anti-dilutive as of the end of each period presented: 
  
 | 
  | 
 Three months ended 
September 30,
  
 | 
  | 
  | 
 Nine months ended 
September 30, 
 | 
  | 
 
 | 
  | 
2015 | 
  | 
  | 
2014 | 
  | 
  | 
2015 | 
  | 
  | 
2014 | 
  | 
 
| Options to purchase common stock | 
  | 
  | 
 12,822,374 | 
  | 
  | 
  | 
 -  | 
  | 
 | 
 | 
 12,822,374 | 
  | 
  | 
  | 
 3,724,529 | 
  | 
 
| Warrants | 
  | 
  | 
 13,744,441 | 
  | 
  | 
  | 
 -  | 
  | 
 | 
 | 
 13,744,441 | 
  | 
  | 
  | 
 8,407,084 | 
  | 
 
| Total common stock equivalents | 
  | 
  | 
 26,566,815 | 
  | 
  | 
  | 
- | 
  | 
  | 
  | 
 26,566,815 | 
  | 
  | 
  | 
 12,131,613 | 
  | 
 
 
 
 
 
 |