update frontend-script for graphtftng
change to graphtftng in two templates