CORE-344 moved JS function from application into dashboard-controller