| Accrued expenses and other current liabilities (Tables) | 6 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Jun. 30, 2016 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Accrued expenses and other current liabilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of accrued expenses and other current liabilities | 
 Accrued expenses and other current liabilities consisted of the following (in thousands): 
 
 
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||