Local markets end week on a better footing