addded ternJS