TS 0.9 compatability

Fixed error in TS0.9 error : 'declare' modifier not allowed for code already in an ambient context.