template js position