XML 43 R31.htm IDEA: XBRL DOCUMENT
v2.4.1.9

Earnings per share (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2014
Earnings per share |
Schedule of computation of basic and diluted net loss per share for common stockholders |
|  | Year ended December 31 |
|  | 2014 |  | 2013 |  | 2012 |
Numerator |  |  |  |  |  |  |  |  |  |
Net (loss) income |  | $ | (93,753 | ) | $ | (51,574 | ) | $ | (26,235 | )
Deemed dividend |  |  | — |  |  | (18,249 | ) |  | — |
Gain on exchange of convertible preferred stock in connection with recapitalization |  |  | — |  |  | 3,391 |  |  | 159,954 |
Less beneficial conversion charge |  |  | — |  |  | — |  |  | (378 | )
Less net income attributable to participating preferred stock |  |  | — |  |  | — |  |  | (132,610 | )
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Net (loss) income attributable to common stockholders |  | $ | (93,753 | ) | $ | (66,432 | ) | $ | 731 |
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Denominator |  |  |  |  |  |  |  |  |  |
Denominator for basic earnings per share |  |  | 31,565,310 |  |  | 12,829,411 |  |  | 3,328 |
Effect of dilutive securities: |  |  |  |  |  |  |  |  |  |
Employee stock options |  |  | — |  |  | — |  |  | — |
Series 3 convertible preferred stock |  |  | — |  |  | — |  |  | 13,877 |
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Denominator for diluted earnings per share |  |  | 31,565,310 |  |  | 12,829,411 |  |  | 17,205 |
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Net (loss) income per share: |  |  |  |  |  |  |  |  |  |
Basic |  | $ | (2.97 | ) | $ | (5.18 | ) | $ | 219.76 |
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Diluted |  | $ | (2.97 | ) | $ | (5.18 | ) | $ | 42.50 |
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​

X
- Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration