update ternjs snippet