Integrating dustjs to both frontend and backend