added js doc for dashboard frontend