replacing - with / in dates before passing it to the date constructor. also changing the path to templates so it will run in our app with out building the whole project