add ifnew js snip