fixed: TernJS issue