HTC hopes midrange phones and better ads will save it in 2014