removed dateify() function in angular ctrlr