Added necessary smarty escaping to ensure embedded JS code works in dashboard. #24