Add ternJS