XML 47 R37.htm IDEA: XBRL DOCUMENT v3.7.0.1
Stock-based compensation - Summary of stock-based compensation expense (Details) - USD ($)
3 Months Ended 6 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Jun. 30, 2016
Employee Service Share-Based Compensation Allocation of Recognized Period Costs [Line Items]        
Stock-based compensation expense $ 1,073,346 $ 1,988,321 $ 2,262,098 $ 3,506,482
Research and development        
Employee Service Share-Based Compensation Allocation of Recognized Period Costs [Line Items]        
Stock-based compensation expense 391,602 684,695 786,019 1,280,161
Selling, general and administrative        
Employee Service Share-Based Compensation Allocation of Recognized Period Costs [Line Items]        
Stock-based compensation expense $ 681,744 $ 1,303,626 $ 1,476,079 $ 2,226,321