Changed to javascript for the template for dashboard