Move templates to client-side file