js magic with play template use