| Accrued expenses and other current liabilities (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2018 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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): 
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||