add momentjs lib
refactor angular chat