Stocks close higher with help from tech, still down for week