added template formating utils, usage of moment to handle nice js dates