add ternJS lib