#4 - finished TernJS integration