Add moment JS. Split up JS for dashboard