Converted the dashboards.coffee client file to JS