append JS pos_end